<meta charset="utf-8">
<?php

$db = require 'db.php';

require 'view/index.php';

$action = isset($_GET['a'])?$_GET['a']:'index';
$control = "controller/".$action.'.php';

// if(is_file($control)){

// 	require $control;

// }else{

// 	// echo '请求出错';
// }

if(is_file($control))
{
	require $control;
}else{
	echo "非法请求";
}


?>